package com.wxz.boot.controller;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.net.InetAddress;
import static java.lang.String.format;

/**
 * 测试入口
 * @author 大硕
 * 2019-02-07 12:02 AM
 **/
@SuppressWarnings("all")
@RestController
public class TestController {

    @GetMapping("/hello")
    @ResponseBody
    public String hello() throws Exception {
        InetAddress address = InetAddress.getLocalHost();
        return format(" hello >>> [%s] >>> [%s]", address.getHostName(), address.toString());
    }
}